package com.woniu.inlet.timer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@Slf4j
@EnableScheduling
public class SendMessageTimer {
    @Scheduled(fixedRate = 8000)
    public void sendMessage(){
        log.info("开始工作了......");
    }

}
